package com.ec.fb.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(description = "提交反馈请求")
public class FeedbackCreateRequestDTO {
    @ApiModelProperty(value = "反馈内容", required = true, example = "服务很好，环境舒适")
    @NotBlank(message = "反馈内容不能为空")
    private String content;

    @ApiModelProperty(value = "评分 (1-5)", required = true, example = "5")
    @NotNull(message = "评分不能为空")
    @Min(value = 1, message = "评分最小为1")
    @Max(value = 5, message = "评分最大为5")
    private Integer rating;
}